package com.wmg.service.impl;

import com.wmg.common.JsonResult;
import com.wmg.service.PasswordService;
import com.wmg.utils.PasswordUtil;
import org.springframework.stereotype.Service;

@Service
public class PasswordServiceImpl implements PasswordService {

    public JsonResult<String> getPassword(String pass, String length) {
        String password = PasswordUtil.getshortPass(pass, length);

        return JsonResult.createSuccessWithData(password);
    }
}
